#include "Registry.h"


Registry * Registry::instance = 0;

Registry::Registry()
{

}

Registry::~Registry()
{

}
		
Registry * Registry::getInstance()
{
	if(!instance)
	{
		instance = new Registry();
	}
	return instance;
}

void Registry::notifyObservers()
{
	for(int i = 0; i < observers.size(); i++)
	{
		observers.getUnchecked(i)->update();
	}
}